﻿<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta content="text/html; charset=UTF-8; X-Content-Type-Options=nosniff" http-equiv="Content-Type" />
<link rel="stylesheet" type="text/css" href="css/smartstream.css" xmlns="http://www.w3.org/1999/html">

<script src="js/app.api.js"></script>
<script src="js/stream.api.js"></script></head>


<div id="community_smartsteam_panel" class="wp_fz_12" style="color: #595959">
    <div id="community_smartsteamTpl" class="smartsteamTpl">
        <div class="ss_wrap ">
            <div class="ss_row wp_mt_10">
<!--filter lists-->
                <ul class="filterMenu wp_ml_8 wp_w_82 left wp_mt_2" id="community_filterMenu">
                    <li>
                        <span id="community_filterMenu_selected">Filter Posts</span>
                        <ul id="community_filterMenu_list"></ul>
                    </li>
                </ul>
                <ul class="filterMenu wp_ml_8 wp_w_82 left wp_mt_2" id="community_document_filter" style="display: none;">
                    <li style="background-color: #E6E6E6;font-size: 10px;">
                        <span id="community_document_filter_selected">Filter Documents</span>
                    </li>
                </ul>
<!--icons for smartstrem documents and so on-->
                <span id="community_menu_icons_for_stream_selected" class="community_menu_icons">
                    <i class="main_smartstream_f_10_10 wp_ml_50 smartsteam_clickable" id="community_smartstream_updates_icon" title="Updates" onclick="community_smartstream.onStreamButtonClicked();"></i><span id="community_smartstream_updates_count" class="community_stream_count smartsteam_clickable" title="Updates" onclick="community_smartstream.onStreamButtonClicked();">&nbsp;(0)</span>
					<i class="main_smartstream_y_10_10 wp_ml_20 smartsteam_clickable" id="community_smartstream_documents_icon" title="Documents" onclick="community_smartstream.onDocumentButtonClicked();"></i><span class="community_document_count smartsteam_clickable" style="display: none;" onclick="community_smartstream.onDocumentButtonClicked();">&nbsp;(0)</span>
                    <i title="Search" id="community_smartstream_search_button" class="main_common_j_11_11 right wp_mt_5 wp_ml_20 smartsteam_clickable" onclick="community_smartstream.onSearchClicked();"></i>
                    <button type="button" class="k-button wp_w_45 wp_h_18 wp_fz_11 right" id="community_smartstream_share_btn" onclick="community_smartstream.onShareButtonClicked();">Share</button>
                </span>
                <span id="community_menu_icons_for_document_selected" style="display: none;" class="community_menu_icons">
                    <i class="main_smartstream_e_10_10 wp_ml_50 smartsteam_clickable" title="Updates" onclick="community_smartstream.onStreamButtonClicked();"></i><span class="community_stream_count smartsteam_clickable" onclick="community_smartstream.onStreamButtonClicked();">&nbsp;(0)</span>
                <i class="main_smartstream_x_10_10 wp_ml_20 smartsteam_clickable" title="Documents" onclick="community_smartstream.onDocumentButtonClicked();"></i><span class="community_document_count smartsteam_clickable" style="display: none;" onclick="community_smartstream.onDocumentButtonClicked();">&nbsp;(0)</span>
                </span>
<!--order options-->
                <span id="community_order_for_stream">
                    <span id="community_ss_order_hottest" class="right wp_mt_3 wp_mr_20 wp_fz_12 smartsteam_clickable" onclick="community_smartstream.onHottestOrderClicked();">Hottest<i class="main_icon_f_6_8 wp_ml_3 wp_mt_3" style="display: none;"></i></span>
                    <span id="community_ss_order_recent" class="right wp_mt_3 wp_mr_20 wp_fz_12 smartsteam_clickable" onclick="community_smartstream.onRecentOrderClicked();" style="color: #a6a6a6">Recent<i class="main_icon_f_6_8 wp_ml_3 wp_mt_3" style="display: none;"></i></span>
                </span>
                <span id="community_order_for_document" style="display: none;">
                    <span id="community_ss_order_name" class="right wp_mt_3 wp_mr_20 wp_fz_12 smartsteam_clickable" onclick="community_smartstream.onDocumentOrderByNameClicked();">Name<i id="community_ss_order_name_down" class="main_icon_f_6_8 wp_ml_3 wp_mt_3" style="display: none;"></i><i id="community_ss_order_name_up" class="main_icon_e_6_8 wp_ml_3 wp_mt_3"></i></span>
                    <span id="community_ss_order_time" class="right wp_mt_3 wp_mr_20 wp_fz_12 smartsteam_clickable" onclick="community_smartstream.onDocumentOrderByTimeClicked();">Time<i id="community_ss_order_time_down" class="main_icon_f_6_8 wp_ml_3 wp_mt_3" style="display: none;"></i><i id="community_ss_order_time_up" class="main_icon_e_6_8 wp_ml_3 wp_mt_3"></i></span>
                </span>
            </div>
        </div>

        <div class="ss_body" id="community_ss_body_search">
			<div class="wp_w_768 wp_h_30 wp_ml_12">
				<span id="community_ss_search_keywords_label" class="left wp_ml_10 wp_fz_11 wp_mt_3">Keywords</span>
					<span class="k-textbox wp_searchbar">            
						<input id="community_ss_search_keywords_input" maxlength=2000  onkeyup="if (event.keyCode == 13) {community_smartstream.doSearch();}" type="text">
						<i class="k-icon k-i-search" title="Search" onclick="community_smartstream.doSearch();">&nbsp;</i>
					</span>
				</span></span>
			</div>
			<hr class="apps_tools_hr wp_w_768 wp_mt_9 wp_mb_10 left">
            <div id="community_ss_body_search_result_container" class="wp_w_768 wp_h_20 wp_mt_10 wp_mb-10">
                <p class="wp_mb_10">
                    <span style="color:#4BB3FC" class="wp_h_20 wp_ml_25 smartsteam_clickable" onclick="community_smartstream.onBackToAllClicked();">Back to all</span>
                    <span id="community_ss_body_search_count">0 Result(s) for </span>
                </p>
                <div id="community_ss_body_search_results"></div>
            </div>
        </div>

        <div class="ss_body" id="community_ss_body_max"></div>
        <div style="height: 500px;display: none;" id="community_document_max"></div>
    </div>
</div>

<!-- max template -->
<script id="community_smartstream_maxTmpl" type="text/x-kendo-template">
    <div class="ss_wrap ss_max" id="community_max_#:data.NotificationId#">
        <div class="left pic">
            #if (data.EntityType != null && data.EntityType.toLowerCase() == 'update') {#
            <img style="margin-top: 2px;" src="imgs/icons/main_documents_g_20_20.png" >
            #}else{#
            <img style="height: 20px;width: 20px;margin-top: 2px;" src="#:data.EntityImageUrl#"  onerror="community_smartstream.default(this)" >
            #}#
        </div>
        <div class="right desc" style="width: 675px;">
            <div class="ss_title">
                <p style=" margin-bottom: 8px;" class="text-overflow">
                    <span id="community_smartstream_title_#:data.NotificationId#" title="#:data.NotificationTitle#" class="left smartsteam_clickable text-overflow" style="font-size: 14px;color: \#000000; max-width: 670px;"
                    #if (!data.IsdetailPageLink || !data.EntityLinkUrl || data.EntityLinkUrl.toLowerCase() == 'null') {#
                    onclick="community_smartstream.showDetailWindow('community','#:data.NotificationId#','#:data.NotificationType#','#:data.CommunityId#','','')"
                    #}else{#
                    onclick="community_smartstream.showDetailWindowWithURL('community','#:data.EntityLinkUrl#','#:data.NotificationId#','#:data.NotificationType#','#:data.ToId#','#:data.CreatedDate#','')"
                    #}#
                    >#:data.NotificationTitle#</span>
                    <i id="community_smartstream_sticky_#:data.NotificationId#" class="right
                    #if (data.EnableSticky) {#
                        smartsteam_clickable
                    #}#

                    #if (data.IsSticky) {#
                        main_smartstream_q_8_8
                    #} else {#
                        main_smartstream_p_8_8
                    #}#
                    "
					title = "#if (data.IsSticky)
								{#Unpin#} 
							else 
								{#Pin#}#"
                    #if (data.EnableSticky) {#
                       onclick="community_smartstream.onStickyClicked(this, '#:data.NotificationId#','#:data.CommunityId#',                    '#:data.IsSticky#')"
                    #}#
                    ></i>
                </p>
            </div>
			<div class="ss_entity" id="community_max_text_#:data.NotificationId#">
                <p style="margin-bottom: 8px;">
					 <a id="ss_max_btn_title_#:data.NotificationId#" title="#:data.NotificationText#"
					#if (!data.IsdetailPageLink || !data.EntityLinkUrl || data.EntityLinkUrl.toLowerCase() == 'null') {#
					href="javascript:community_smartstream.showDetailWindow('community','#:data.NotificationId#','#:data.NotificationType#','#:data.CommunityId#','','')">
					#}else{#
						href="javascript:community_smartstream.showDetailWindowWithURL('community','#:data.EntityLinkUrl#','#:data.NotificationId#','#:data.NotificationType#','#:data.ToId#','#:data.CreatedDate#','')">
					#}#
				 #:data.NotificationText#</a>
                </p>
                #=data.AdditionalData#
            </div>

			#var strArray = (data.Tags+'') .split(",");#
			#if (data.Tags && data.Tags.length > 0) {#
				<p class="ss_tags word-break" id="community_max_btn_tag_#:data.NotificationId#" style="color: \#a6a6a6;margin-bottom: 8px;">
				<img src="imgs/icons/tagicon.png" class="left wp_w_10 wp_h_10 wp_mt_4 wp_mr_4">
				#for (var i = 0; i < strArray.length; i++) {#
					<span  id="community_max_tags" class="wp_ss_hand" onclick='community_smartstream.onTagsClick("#:strArray[i]#")'>#:strArray[i]#</span>
					#if(i!=strArray.length-1){#
						,
					#}#
				#}#
				</p>
			#}#	
            
            <div class="ss_additional">
                # for(var i = 0,_next = data.Attachment ;_next  && i < data.Attachment.length ; i++ ){ #
                <div class="at_item">
                    <a target="_blank" title="#:data.Attachment[i].Name#" onclick="FileViewer.load('#:data.Attachment[i].RefURL#','#:data.Attachment[i].Name#','#:data.Attachment[i].Type#')" >
                        #= community_smartstream.getAppIcon(data.Attachment[i].Type) #
                        <span>#:data.Attachment[i].Name#</span>
                    </a>
                </div>
                # } #

                # for(var i = 0,_next = data.Image ; _next && i < data.Image.length ; i++ ){ #
                <div class="at_item">
                    <a target="_blank" title="#:data.Image[i].Name#" onclick="FileViewer.load('#:data.Image[i].RefURL.split('*')[0]#','#:data.Image[i].Name#','#:data.Image[i].Type#')" >
                        <img style="width: 20px;height: 20px;" src="#:data.Image[i].RefURL.split('*')[1]#" onerror="community_smartstream.setDefaultIcon(this)" >
                        <span>#:data.Image[i].Name#</span>
                    </a>
                </div>
                # } #

            </div>
            <div class="ss_footer">
                <table class="left wp_w_200 wp_h_25">
                    <tr>
                        <td class="left">
                            <img id="community_smartstream_from_img_#:data.NotificationId#" class="smartsteam_clickable" style="width: 15px;height: 15px;float:left;margin-right: 5px;" src="#: data.FromImageUrl #" onerror="community_smartstream.toSingleImg(this)"  align="middle" onclick="homepageProfileWin.user_info_win_create('#:data.FromId#')">
                        </td>
                        <td class="left" style="max-width: 160px;">
                            <p id="community_smartstream_from_name_#:data.NotificationId#" style="max-width: 160px;width: auto;" class="text-overflow smartsteam_clickable" title="#: data.FromName #" onclick="homepageProfileWin.user_info_win_create('#:data.FromId#')">#: data.FromName #</p>
                        </td>
                </table>
                <div class="right wp_fz_12 wp_mr_0 wp_mb_0">
					<div class="left wp_w_50">
						<span class="left wp_mt_1" data-bind="text: ss_topic_detail_modified"></span>
						<div class="right wp_mr_20">
							#if(data.EnableDelete){#
							<i id="community_smartstream_deleterow_#:data.NotificationId#" class="main_calendar_p_10_10 smartsteam_clickable" onclick="community_smartstream.deleteRow({'id':'#:data.NotificationId#','type':'#:data.NotificationType#','targetId':'#:data.CommunityId#'})" title="Delete"></i>
							#}#
						</div>
					</div>
                    <div class="left wp_w_105">
						<span id="community_smartstream_createdate_#:data.NotificationId#"  class="wp_dynimac_text wp_mr_20">#: Workport.utils.calDays(data.ServerDate,data.LastModifiedDate) #</span>
					</div>           
                    <div class="left wp_w_30">
						<i id="community_smartstream_subscribe_#:data.NotificationId#"
							# if(data.IsSubscribed){ #
								class="main_calendar_t_8_8
								# if (data.EnableSocialFeature && data.EnableSocialFeature.Subscribe){#
								smartsteam_clickable
								#}#
								" title="Stop Mail Alerts"
							# }else{ #
								class="main_calendar_u_8_8
								# if (data.EnableSocialFeature && data.EnableSocialFeature.Subscribe){#
								smartsteam_clickable
								#}#
								" title="Receive Mail Alerts"
							# } #
							#var tid = data.NotificationType.toLowerCase() == 'c'?data.CommunityId:data.FromId;#
							status="#: data.IsSubscribed#"
							# if (data.EnableSocialFeature && data.EnableSocialFeature.Subscribe){#
							onclick="community_smartstream.subscribe(this,{'notificationId':'#:data.NotificationId#','targetId':'#:tid#','notificationType':'#:data.NotificationType#'})"
							#}#
							></i>
					</div>
					<div class="left wp_w_60">
						<span title="Reply" id="ss_viewall_max_btn_comment_#:data.NotificationId#"
							#if (data.EnableSocialFeature && data.EnableSocialFeature.Comment) {#
							onclick=
							#if (!data.IsdetailPageLink || !data.EntityLinkUrl || data.EntityLinkUrl.toLowerCase() == 'null') {#
							"community_smartstream.showDetailWindow('community','#:data.NotificationId#','#:data.NotificationType#','#:data.CommunityId#','#:data.CreatedDate#','');"
							#}else{#
							"community_smartstream.showDetailWindowWithURL('community','#:data.EntityLinkUrl#','#:data.NotificationId#','#:data.NotificationType#','#:data.ToId#','#:data.CreatedDate#','');"
							#}#
							class = "smartsteam_clickable"
							#}#
							>
							<i class="main_smartstream_u_8_8"></i><span class="" style="margin-left: 0px;" title="Reply">&nbsp;(#: data.CommentCount #)</span>
						</span>
					</div>
					<div class="left wp_w_60">
						 <span style="margin-left: 0px;" >
                                <i id="community_smartstream_social_feature_#:data.NotificationId#" class="main_calendar_s_8_8
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.NominateExpert) {#
                                smartsteam_clickable
                                #}#
                                    " title="Nominate an Expert"
                                        #if (data.EnableSocialFeature && data.EnableSocialFeature.NominateExpert) {#
                                           onclick="community_smartstream.onExpertClicked('#:data.NotificationId#', '#:data.CommunityId#', '#:data.Tags.join(',')#', '#:data.NotificationType#');"
                                        #}#
                                    ></i>
                                    <span
                                    #if (parseInt(data.ExpertsCount) && data.EnableSocialFeature && data.EnableSocialFeature.NominateExpert > 0) {#
                                    onclick="community_smartstream.onExpertCountClicked('#:data.NotificationId#','#:data.NotificationType#', '#:data.CommunityId#');" class="smartsteam_clickable"
                                    #} else {#
                                    #}#
                                    >(#: data.ExpertsCount #)</span>
                            </span>
					</div>
                    <div class="left wp_w_30">
						 <i id="ss_viewall_max_btn_bookmark_#:data.NotificationId#"
                                   class="
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.BookMark) {#
                                    smartsteam_clickable
                                #}#
                                #if(data.IsBookMarked){#
                                    main_smartstream_ab_8_8
                                #}else{#
                                    main_smartstream_aa_8_8
                                #}#
                                "
                                   status = '#:data.IsBookMarked#'
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.BookMark) {#
                                onclick="community_smartstream.bookmark(this,{'id': '#:data.NotificationId#', 'communityId': '#:data.CommunityId#','type': '#:data.NotificationType#' })"
                                #}#
                                #if(data.IsBookMarked){#
                                title="Unbookmark"
                                #}else{#
                                title="Bookmark"
                                #}#
                                ></i>
					</div>
					<div class="left wp_w_30">
							<i id="community_smartstream_share_email_#:data.NotificationId#"  title="Share via Email"
							#if (data.EnableSocialFeature && data.EnableSocialFeature.Share) {#
								onclick = "community_smartstream.onShareEamilClicked('#:data.NotificationTitle#','#:data.NotificationText#');" class="smartsteam_clickable main_calendar_v_8_8"
							#} else {# 
								  class="main_calendar_v_8_8"
							#}#
							></i>
					</div>
					<div class="left wp_w_40">
						 <i id="ss_viewall_max_btn_like_#:data.NotificationId#"
                                #if(data.IsLiked){#
                                class="main_smartstream_t_8_8
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like) {#
                                smartsteam_clickable
                                #}#
                                " title="You have Liked this"
                                #}else{#
                                class="main_smartstream_w_8_8
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like) {#
                                smartsteam_clickable
                                #}#
                                " title="Like this"
                                #}#
                                status = '#:data.IsLiked#'
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like) {#
                                onclick="community_smartstream.isliked(this,{'targetId': '#:data.CommunityId#', 'id': '#:data.NotificationId#', 'fromId': '#:data.FromId#', 'commentId': '', 'commentedBy': '', 'type': '#:data.NotificationType#' })"

                                #}#
                                ></i>&nbsp;<span style="margin-left: 0px;">
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like){#
                                    #if (data.LikesCount != '0'){#
                                        (<a id="community_smartstream_linked_count_#:data.NotificationId#" class="likesCount smartsteam_clickable" onclick="community_smartstream.onLickedCountClicked(this, '#:data.NotificationId#')">#:$.trim(data.LikesCount)#</a>)
                                    #} else {#
                                        (<a id="community_smartstream_linked_count_#:data.NotificationId#"  class="likesCount" onclick="community_smartstream.onLickedCountClicked(this, '#:data.NotificationId#')">#:$.trim(data.LikesCount)#</a>)
                                    #}#
                                #} else {#
                                    (<a class="likesCount">#:$.trim(data.LikesCount)#</a>)
                                #}#

								</span>
					</div>
                </div>
            </div>
        </div>
    </div>
    <div class="ss_row ss_line wp_mt_15 wp_mb_10" id="community_max_#:data.NotificationId#_line"></div>
</script>

<!-- max template -->
<script id="community_smartstream_maxTmpl_return" type="text/x-kendo-template">
    <div class="ss_wrap ss_max" id="community_max_#:data.NotificationId#">
        <div class="left pic">
            #if (data.EntityType != null && data.EntityType.toLowerCase() == 'update') {#
            <img style="margin-top: 2px;" src="imgs/icons/main_documents_g_20_20.png" >
            #}else{#
            <img style="height: 20px;width: 20px;margin-top: 2px;" src="#:data.EntityImageUrl#"  onerror="community_smartstream.default(this)" >
            #}#
        </div>
        <div class="right desc" style="width: 675px;">
            <div class="ss_title">
                <p style=" margin-bottom: 8px;" class="text-overflow">
                    <span id="community_smartstream_title_#:data.NotificationId#" title="#:data.NotificationTitle#" class="left smartsteam_clickable text-overflow" style="font-size: 14px;color: \#000000; max-width: 670px;"
                    #if (!data.IsdetailPageLink || !data.EntityLinkUrl || data.EntityLinkUrl.toLowerCase() == 'null') {#
                    onclick="community_smartstream.showDetailWindow('community','#:data.NotificationId#','#:data.NotificationType#','#:data.CommunityId#','','')"
                    #}else{#
                    onclick="community_smartstream.showDetailWindowWithURL('community','#:data.EntityLinkUrl#','#:data.NotificationId#','#:data.NotificationType#','#:data.ToId#','#:data.CreatedDate#','')"
                    #}#
                    >#:data.NotificationTitle#</span>
                    <i id="community_smartstream_sticky_#:data.NotificationId#" class="right
                    #if (data.EnableSticky) {#
                        smartsteam_clickable
                    #}#

                    #if (data.IsSticky) {#
                        main_smartstream_q_8_8
                    #} else {#
                        main_smartstream_p_8_8
                    #}#
                    "
					title = "#if (data.IsSticky)
								{#Unpin#} 
							else 
								{#Pin#}#"
                    #if (data.EnableSticky) {#
                       onclick="community_smartstream.onStickyClicked(this, '#:data.NotificationId#','#:data.CommunityId#',                    '#:data.IsSticky#')"
                    #}#
                    ></i>
                </p>
            </div>
			<div class="ss_entity" id="community_max_text_#:data.NotificationId#">
                <p style="margin-bottom: 8px;">
					 <a id="ss_max_btn_title_#:data.NotificationId#" title="#:data.NotificationText#"
					#if (!data.IsdetailPageLink || !data.EntityLinkUrl || data.EntityLinkUrl.toLowerCase() == 'null') {#
					href="javascript:community_smartstream.showDetailWindow('community','#:data.NotificationId#','#:data.NotificationType#','#:data.CommunityId#','','')">
					#}else{#
						href="javascript:community_smartstream.showDetailWindowWithURL('community','#:data.EntityLinkUrl#','#:data.NotificationId#','#:data.NotificationType#','#:data.ToId#','#:data.CreatedDate#','')">
					#}#
				 #:data.NotificationText#</a>
                </p>
                #=data.AdditionalData#
            </div>

			#var strArray = (data.Tags+'') .split(",");#
			#if (data.Tags && data.Tags.length > 0) {#
				<p class="ss_tags word-break" id="community_max_btn_tag_#:data.NotificationId#" style="color: \#a6a6a6;margin-bottom: 8px;">
				<img src="imgs/icons/tagicon.png" class="left wp_w_10 wp_h_10 wp_mt_4 wp_mr_4">
				#for (var i = 0; i < strArray.length; i++) {#
					<span  id="community_max_tags" class="wp_ss_hand" onclick='community_smartstream.onTagsClick("#:strArray[i]#")'>#:strArray[i]#</span>
					#if(i!=strArray.length-1){#
						,
					#}#
				#}#
				</p>
			#}#	
            
            <div class="ss_additional">
                # for(var i = 0,_next = data.Attachments ;_next  && i < data.Attachments.length ; i++ ){ #
                <div class="at_item">
                    <a target="_blank" title="#:data.Attachments[i].Name#" onclick="FileViewer.load('#:data.Attachments[i].RefURL#','#:data.Attachments[i].Name#','#:data.Attachments[i].Type#')" >
                        #= community_smartstream.getAppIcon(data.Attachments[i].Type) #
                        <span>#:data.Attachments[i].Name#</span>
                    </a>
                </div>
                # } #

                # for(var i = 0,_next = data.Images ; _next && i < data.Images.length ; i++ ){ #
                <div class="at_item">
                    <a target="_blank" title="#:data.Images[i].Name#" onclick="FileViewer.load('#:data.Images[i].RefURL.split('*')[0]#','#:data.Images[i].Name#','#:data.Images[i].Type#')" >
                        <img style="width: 20px;height: 20px;" src="#:data.Images[i].RefURL.split('*')[1]#" onerror="community_smartstream.setDefaultIcon(this)" >
                        <span>#:data.Images[i].Name#</span>
                    </a>
                </div>
                # } #

            </div>
            <div class="ss_footer">
                <table class="left wp_w_200 wp_h_25">
                    <tr>
                        <td class="left">
                            <img id="community_smartstream_from_img_#:data.NotificationId#" class="smartsteam_clickable" style="width: 15px;height: 15px;float:left;margin-right: 5px;" src="#: data.FromImageUrl #" onerror="community_smartstream.toSingleImg(this)"  align="middle" onclick="homepageProfileWin.user_info_win_create('#:data.FromId#')">
                        </td>
                        <td class="left" style="max-width: 160px;">
                            <p id="community_smartstream_from_name_#:data.NotificationId#" style="max-width: 160px;width: auto;" class="text-overflow smartsteam_clickable" title="#: data.FromName #" onclick="homepageProfileWin.user_info_win_create('#:data.FromId#')">#: data.FromName #</p>
                        </td>
                </table>
                <div class="right wp_fz_12 wp_mr_0 wp_mb_0">
					<div class="left wp_w_50">
						<span class="left wp_mt_1" data-bind="text: ss_topic_detail_modified"></span>
						<div class="right wp_mr_20">
							#if(data.EnableDelete){#
							<i id="community_smartstream_deleterow_#:data.NotificationId#" class="main_calendar_p_10_10 smartsteam_clickable" onclick="community_smartstream.deleteRow({'id':'#:data.NotificationId#','type':'#:data.NotificationType#','targetId':'#:data.CommunityId#'})" title="Delete"></i>
							#}#
						</div>
					</div>
                    <div class="left wp_w_105">
						<span id="community_smartstream_createdate_#:data.NotificationId#"  class="wp_dynimac_text wp_mr_20">#: Workport.utils.calDays(data.ServerDate,data.LastModifiedDate) #</span>
					</div>           
                    <div class="left wp_w_30">
						<i id="community_smartstream_subscribe_#:data.NotificationId#"
							# if(data.IsSubscribed){ #
								class="main_calendar_t_8_8
								# if (data.EnableSocialFeature && data.EnableSocialFeature.Subscribe){#
								smartsteam_clickable
								#}#
								" title="Stop Mail Alerts"
							# }else{ #
								class="main_calendar_u_8_8
								# if (data.EnableSocialFeature && data.EnableSocialFeature.Subscribe){#
								smartsteam_clickable
								#}#
								" title="Receive Mail Alerts"
							# } #
							#var tid = data.NotificationType.toLowerCase() == 'c'?data.CommunityId:data.FromId;#
							status="#: data.IsSubscribed#"
							# if (data.EnableSocialFeature && data.EnableSocialFeature.Subscribe){#
							onclick="community_smartstream.subscribe(this,{'notificationId':'#:data.NotificationId#','targetId':'#:tid#','notificationType':'#:data.NotificationType#'})"
							#}#
							></i>
					</div>
					<div class="left wp_w_60">
						<span title="Reply" id="ss_viewall_max_btn_comment_#:data.NotificationId#"
							#if (data.EnableSocialFeature && data.EnableSocialFeature.Comment) {#
							onclick=
							#if (!data.IsdetailPageLink || !data.EntityLinkUrl || data.EntityLinkUrl.toLowerCase() == 'null') {#
							"community_smartstream.showDetailWindow('community','#:data.NotificationId#','#:data.NotificationType#','#:data.CommunityId#','#:data.CreatedDate#','');"
							#}else{#
							"community_smartstream.showDetailWindowWithURL('community','#:data.EntityLinkUrl#','#:data.NotificationId#','#:data.NotificationType#','#:data.ToId#','#:data.CreatedDate#','');"
							#}#
							class = "smartsteam_clickable"
							#}#
							>
							<i class="main_smartstream_u_8_8"></i><span class="" style="margin-left: 0px;" title="Reply">&nbsp;(#: data.CommentCount #)</span>
						</span>
					</div>
					<div class="left wp_w_60">
						 <span style="margin-left: 0px;" >
                                <i id="community_smartstream_social_feature_#:data.NotificationId#" class="main_calendar_s_8_8
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.NominateExpert) {#
                                smartsteam_clickable
                                #}#
                                    " title="Nominate an Expert"
                                        #if (data.EnableSocialFeature && data.EnableSocialFeature.NominateExpert) {#
                                           onclick="community_smartstream.onExpertClicked('#:data.NotificationId#', '#:data.CommunityId#', '#:data.Tags.join(',')#', '#:data.NotificationType#');"
                                        #}#
                                    ></i>
                                    <span
                                    #if (parseInt(data.ExpertsCount) && data.EnableSocialFeature && data.EnableSocialFeature.NominateExpert > 0) {#
                                    onclick="community_smartstream.onExpertCountClicked('#:data.NotificationId#','#:data.NotificationType#', '#:data.CommunityId#');" class="smartsteam_clickable"
                                    #} else {#
                                    #}#
                                    >(#: data.ExpertsCount #)</span>
                            </span>
					</div>
                    <div class="left wp_w_30">
						 <i id="ss_viewall_max_btn_bookmark_#:data.NotificationId#"
                                   class="
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.BookMark) {#
                                    smartsteam_clickable
                                #}#
                                #if(data.IsBookMarked){#
                                    main_smartstream_ab_8_8
                                #}else{#
                                    main_smartstream_aa_8_8
                                #}#
                                "
                                   status = '#:data.IsBookMarked#'
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.BookMark) {#
                                onclick="community_smartstream.bookmark(this,{'id': '#:data.NotificationId#', 'communityId': '#:data.CommunityId#','type': '#:data.NotificationType#' })"
                                #}#
                                #if(data.IsBookMarked){#
                                title="Unbookmark"
                                #}else{#
                                title="Bookmark"
                                #}#
                                ></i>
					</div>
					<div class="left wp_w_30">
							<i id="community_smartstream_share_email_#:data.NotificationId#"  title="Share via Email"
							#if (data.EnableSocialFeature && data.EnableSocialFeature.Share) {#
								onclick = "community_smartstream.onShareEamilClicked('#:data.NotificationTitle#','#:data.NotificationText#');" class="smartsteam_clickable main_calendar_v_8_8"
							#} else {# 
								  class="main_calendar_v_8_8"
							#}#
							></i>
					</div>
					<div class="left wp_w_40">
						 <i id="ss_viewall_max_btn_like_#:data.NotificationId#"
                                #if(data.IsLiked){#
                                class="main_smartstream_t_8_8
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like) {#
                                smartsteam_clickable
                                #}#
                                " title="You have Liked this"
                                #}else{#
                                class="main_smartstream_w_8_8
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like) {#
                                smartsteam_clickable
                                #}#
                                " title="Like this"
                                #}#
                                status = '#:data.IsLiked#'
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like) {#
                                onclick="community_smartstream.isliked(this,{'targetId': '#:data.CommunityId#', 'id': '#:data.NotificationId#', 'fromId': '#:data.FromId#', 'commentId': '', 'commentedBy': '', 'type': '#:data.NotificationType#' })"

                                #}#
                                ></i>&nbsp;<span style="margin-left: 0px;">
                                #if (data.EnableSocialFeature && data.EnableSocialFeature.Like){#
                                    #if (data.LikesCount != '0'){#
                                        (<a id="community_smartstream_linked_count_#:data.NotificationId#" class="likesCount smartsteam_clickable" onclick="community_smartstream.onLickedCountClicked(this, '#:data.NotificationId#')">#:$.trim(data.LikesCount)#</a>)
                                    #} else {#
                                        (<a id="community_smartstream_linked_count_#:data.NotificationId#"  class="likesCount" onclick="community_smartstream.onLickedCountClicked(this, '#:data.NotificationId#')">#:$.trim(data.LikesCount)#</a>)
                                    #}#
                                #} else {#
                                    (<a class="likesCount">#:$.trim(data.LikesCount)#</a>)
                                #}#

								</span>
					</div>
                </div>
            </div>
        </div>
    </div>
    <div class="ss_row ss_line wp_mt_15 wp_mb_10" id="community_max_#:data.NotificationId#_line"></div>
</script>


<div id="community_ss_window_liked_users"><div id="community_ss_window_users_list_scroll"></div></div>
<script type="text/x-kendo-template" id="community_ss_window_tmpl_liked_users">
    <div class="wp_w_162 wp_mt_10 wp_mb_10 wp_w_354 wp_ml_15">
        <img onclick="homepageProfileWin.user_info_win_create('#:data.UserID#')" class="left wp_w_20 wp_h_20 wp_ss_hand" src="#:data.UserImageURL#" onerror="onDefaultThumbnailWanted(this, 'U')">
        <span onclick="homepageProfileWin.user_info_win_create('#:data.UserID#')" class="wp_fz_12 wp_ml_15 wp_mt_ne1 left wp_ss_hand">#:data.UserName#</span>
        <div class="clear"></div>
    </div>
</script>
<script type="text/x-kendo-template" id="community_ss_window_tmpl_expert_users">
    <div class="wp_w_162 wp_mt_10 wp_mb_10 wp_w_354 wp_ml_15">
        <img onclick="homepageProfileWin.user_info_win_create('#:data.UserId#')" class="left wp_w_20 wp_h_20 wp_ss_hand" src="#:data.UserImageUrl#" onerror="onDefaultThumbnailWanted(this, 'U')">
        <span onclick="homepageProfileWin.user_info_win_create('#:data.UserId#')" class="wp_fz_12 wp_ml_15 wp_mt_ne1 left wp_ss_hand">#:data.UserName#</span>
        <div class="clear"></div>
    </div>
</script>

<div id="community_smartstream_window"></div>

<script type="text/javascript" src="js/community.viewall.js"></script>
